package com.ruoyi.serve.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资源管理对象 server_url
 * 
 * @author ruoyi
 * @date 2023-11-15
 */
public class ServerUrl extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 网站名 */
    @Excel(name = "网站名")
    private String urlName;

    /** 网址链接 */
    @Excel(name = "网址链接")
    private String url;

    /** 0正常、1异常   默认为0 */
    @Excel(name = "0正常、1异常   默认为0")
    private Long state;

    /** 分类 */
    @Excel(name = "分类")
    private Long urlType;

    /** 连接延迟 */
    @Excel(name = "连接延迟")
    private String connectDelay;

    /** 删除状态 0为正常、1为删除 */
    private Long deleteState;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUrlName(String urlName) 
    {
        this.urlName = urlName;
    }

    public String getUrlName() 
    {
        return urlName;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setUrlType(Long urlType) 
    {
        this.urlType = urlType;
    }

    public Long getUrlType() 
    {
        return urlType;
    }
    public void setConnectDelay(String connectDelay) 
    {
        this.connectDelay = connectDelay;
    }

    public String getConnectDelay() 
    {
        return connectDelay;
    }
    public void setDeleteState(Long deleteState) 
    {
        this.deleteState = deleteState;
    }

    public Long getDeleteState() 
    {
        return deleteState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("urlName", getUrlName())
            .append("url", getUrl())
            .append("state", getState())
            .append("urlType", getUrlType())
            .append("connectDelay", getConnectDelay())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteState", getDeleteState())
            .append("remark", getRemark())
            .toString();
    }
}
